added breaks in autonomous code