simplex second phase first work version