optimized dataInputR and feat ext and mainv2