updated example code for bolt updates