change class for all types