implemented parallel locality test