added well-selection feature