extra error checking 7