stack queue

fixed stack. there was bug.