changed magic number to const