extra error checking 5