move all constant usage to main class