moved reference variables outside of Start()