added printing of stimulus