avoid magic numbers fix