remove unused state constants
remove useless setting of state