updated 'append' definition and comment