remove unneeded params from visitLines