removed one range based loop