declare my_inter as global var at beginning