cleaner code for setting incrementer