added state updating