Change of Mod Function