wrapper for a stack