simplified code, removed some unnecessary vars
begin using a count value in menu items