remove use of magic number.