fixed stack. add delete functionalilty.