refactor bob