added getPreviousResponse