add down in open, and trim in exit