refactor deliteful app