refactored add_rooms