change class context