change val->attr