add overlap function