main worker for feature computation