check for correct key