refactored all increments and decrements into 1 funciton. it assumes only ints though, and core112 has increments for double, so need to rebuild it even more. but it works fine for ints