I had to use empty instead of close