changed public constants to protected