fix the nlp and freebie
last version is not working since I change the getLevel() function and $level seems to be related to nlp, so keep all the original code, add another function to get level counts and hope this time will  work