print with templates