removed train_ranges from assignInNamespace