remove dependent package and reorganise