unify to use print function