testing out differnt codes and coming up with NaN