refactor runs