refactor generate bills method for room.