adding locking (3)