added hinge stuff (broken)