basic phase distortion, uncomment the line 194 to test w/ random function