refactor project codes