changing dir struct in solver
changing dir struct in solver