filter zeros when calculating value