add error catch on formula