some additions to stacking functions section