change close method