moved the name changer function to within the data prep function