update local
code re-factoring for execute state