"added const to keytype"