add struct array, const pointer and memeory scope
update visualiazation