filtered data working through main w/o mem leaks