filtering zip logic