A smart way to do modulo added