replace magic number by named constant