added ratio test