use constant for state
use constant for state