changed the sumsqdiffr