extra error checking 7 - fix syntax