automating the log transformation of traits