imperative line graph fixed