buggy stack print