commented menu function