adapted behaviour when leaving a location