replace constat by var