added list_for_each_safe