initial solve for both metrics! many optimizations lay ahead