fix bug
set states
remove useless files