fixed find function to return lines