remove graph and reducing of dimensionality