updated mod operator