need error checking before appending it