improve check
lock