modified ranges and added menu items