improved adaptive grid