corrected Filter logic

still not complete; prints an array of values, rather use index