functions were not working because model list wasn't recognized, fixed so that mod.list was in each function