update errors tag for optimize, not duplication code