added stack print