fixed syntax typo
check for incorrect number of columns