change function to allow projects without any methods