breakContigously function