add overlap in c