use constants instead of strings for state