forget to declare some global variables