trying to make integral working (without any paralleling ofc)