change class and method property uesed by class constant