[EDIT] lock and unlock