fixing response creation to include publication id