Change way of comparision to ++ and -- operations