extra error checking 2