removed many to many for activities and outputs