1. further simplify error checing
2. ncol to NCOL