move printing process to printing utils