fixed normal and position are wrong
fixed line comparison was wrong