removed getsolve function