method solve added