add update of struct ptr decode