corrected finaldomains array to reflect new try/catch