testing menu function