close: need to fix bug