method close implemented