template now reads attribute values