fighting with close()