removing double locking