using lock.