added a minimal word length constraint