made ratio dynamic