fixed the key mistakes