refactor split parse and display