removed remainder of tabs in both files, added qfatal to redBlock functiono and changed for loop to foreach loop