refactoring project_code