notes for preprocessing lecture