fix freeze
update and display fps by changing the generator speed
fix array definition
Modifiers should be declared in the correct order