added first lines of log method