add end to TObj