refactored hotelUtil