closing only when used