removed bad realtime code