adding output length variable to history methods