don't conitinue if complete overlap
Docstrings added