bug fixed;
int state-->Integer state