replace magic number of led range