added state api
state api update