added stack to analyze