changed locking