first steps for locking