updated append to extend for the normal case