refactor goTo function in outings