note open and close