started line matching code