changed structure of output result