changes for Hannes AASequence implementation