corrected calculation of each words size