changed magic number to a constant