removes extraneous code from lightshow thread