debuggin the Keyerrors