added a close method