correction of append function call