changed filter to no longer create sparse arrays as results