change append-to function.