changed custom calorie scoring script to use ratio