Bugfix:the key is wrong
Add:empty proc for the arrival and departure