check keys as well