adding locking functionality
Locking works, but whenever ge not whenever gem. Weights work