refactor project code.