added another response function and a response function delegate class