merging printer code