added logic for startover