refactor bob for SRP