updates on stack implementation