added script for transition ratio