modify counting