made a stopping condition for a single run()