inc() and dec() working properly