Optimated with word length diffrence function