added ratio script