adjusted activity query because of the graph model change