moved constants to their own file and fixed a bug with trying to use the same constant name for two different things