refactored bored