added stack evaluation criteria