fixed local var x+y init. need to test more than 2