changed to use min and max in roomcheckin