passing parameters to solve function