stack summary with factroail algorithm