should actually perform this on each line