added more autonomous code