using print instead of echo in templates