implemented chain generation in arm tab intermediate