change the setGuests function return type