add inc and dec functions