edited ds_table and fixed NA in script