finished the formula solving shit