I see that you have sent incorrectly formatted code, but even in this part I do not understand why you compare the same ID for inequality? Such a comparison will always give you false and the code below will not be executed