debugging append issue