updated response creation for pipeline