Function was returning only the first instance encountered...cuz that's what return does...sigh...now just outputting data to pipe