fixing modulo