change dep tree format