fixed import and added stats to data