updated functions.R template for jian