improve dep tree