added or equal 0 for fail height
switched to proper output table first then average in runPrograms