changed argument to TextProgressBar for ntraj as list