modifications for ABBA-BABA processing