extra error checking 8