fixed append method