working in printer and main