get rid of magic numbers for true/false