based on a stack cuh