modification for result viewing