remove double keys