Separating GenFilter to be used from other functions
separating GenFilter to be used from other functions