implement increment/decrement logic