race menu as function