extra error checking 4