add closed method