extra error checking 10