added docs for solve