change class graph