mod some codes