add total to response