removes old versions of groups, replaces with newer