update sample response functionality