compiles and runs with glitches