use lock and remove keyList