modified to avoid empty names for the projcets