debug move leftovers to border (untested)