remove extra keys