resolve magic numbers