better checks in VB3_generateData.m