check key earlier