added cross product stuff for second step