finished the claculations. stillbuggy