change class structure