changed name of close method