modify to clean-up FRAMERATE-COUNTER