join by id; simplify csv format