syntax fix to switch lock to unlock