just before leaving