add adaptive grid