completed modulo 3