adding iteration over activities