added state to condition