basic overlap code added.