change validLock to be final