return bed functional
bed exchange function