adding error in template