remove invalids