handles consecutive abc's & aba's