eliminate some compile warnings
tune the parameter to support longer words (max 8 now)