more closing code