add append function.