fixing a magic constant issue