Removed modulo operator in one of the functions