turn dependencies into list