stack realization fixed