added solving alg //not working