extra error checking 12