removed unneeded t.end()