handling no stack case