added two lines for line generating error