splittinginto increment and decrement