increment and decrement function added