making 'solve' work