add close methods