update to close element