added stack-pop (corrects bug? when determining return points)