modulo count was not correct