Before removing filling empty interval
Fixing bug and adding printing