replace constants by static class members