refactoring initialisation of constants