changed plotting graph