wrote inputwrappersample