change template error_decorator replacing for standards patterns