fixed issues with the lengths of words