closing stuff is needed