adding min/max bed function