Refactored function __projects