breaks off passDontPass into separate function