change return value in solver