now the calculation logic lives outside NLPixi, so that it doesnt care about it anymore and do not duplicate data unecessarily