replace magic numbers with consts