corrected name of solve function.