convert customizer to a class