Bed mechanism with locking system is in use in base system beds. By the support of gas spring the base cover can lift up to 40 degrees. It can be used in the midst of 300 and 1200 nw gas springs. When opening up the base cover the lockin system steps in and the base cover is not going to get closed. For to unlock the locking system,base cover has to be lift up about 10 cm more and the cover get closed.