removes magic number as a constant