modified merger of AA tables => need to double check from the start