ended modulo 5