careful with MATLAB generated stacks