added results functionality