made a mess of some code that is supposed to do all to all