edit struct of app