* refactor construct building code
* fix bug: del element when traversal an array