changed template to reflect error