error handling in the fa2 algo