using variable for logroot