extra error checking 11