fixed line rotation

finally working