use $inc -1 instead of $dec 1