forgot to terminate t.remove() call when j out of range