extracting vocab from the files