beofre adding graph