add support for size changing
changed FPS