dealing with the unexpected