code for RIN analysis added