small beautychanges in calculation