reorganizes dependencies