[amsc] linear implementation of the explanation