added ration functionality basics