implementing Print Service function