testing two alternative methods for constant