changed the way menu is repeated