stack is reading/writing in correct order.