call moment calc for poly, shrink code