swapped definition of constants and packages