changed transformation of brt and modified for loop to record algorithms with all NA's or 0's