smá refactor