extra check for keys, just in case
same check added