add initial state check