removed old difference checker. use SEMA to smooth data