added ratio option