bug decrement instead of increment