replace a magic number