working answer append