refactor to minimize helloworld app