updated var name from  allOptions to all_options