removing excess output from solve function