move smallWords to file level to avoid creating every time