added functionality to response