change two normalize() to modulo()