failing when there are missing or extra keys