complute the deptlist