tweaked logic lecture