extra error checking 9