missing end in calcPxCov