added R code for real time conversion
print fix for gen_util