print function mod