restructured reassociation to handle more cases (rule R7, R8 were not working)