Reverted add_value_in_list function