added xKeysOf
added missing collate field
fixed a bug in xKeysOf