changing locking mechanism