remove cmp functions from Bed class