the script is working. going to try to add a feature that will use x and y from S2 if y at S1 is NaN...