Mod some function