found a much more elegent solution to the many to many relationship