add check for word lengths