finished the computation section