fixing the line number issue