optimisation: it now takes less time to print text.