progress towards updating codes snippet