added the 'static' keyword missing that prevented compilation. do not run this it will infloop