finished with new method, returning a lot of NaN