renamed log-fn to log