fixed typo in define function for appendo