reduce function just prints, but map function fails already with some data
if-branch for grouping or crawling and grouping