Changed line drawing formula