adding overleap-function