fixed mistake with close