start centralizing log transform function