extra error checking 6