updating bed code for more bed types

adding some static functions