reversing an integer related