overlap function update.