Fixed the occurrences error and also the direct read from the file in the reducer.