plan for min and max cursor