added state timer