solved issue where sometimes variables get initiated, sometimes they dont according to order