minor adjustment of API for cov and cor