trying to fix close