change % to mod