redefined file path, changed Log to $log