renamed local_update and initialized min_label