finding bug
fix bug witn NaN
works maybe