why is this in the model and controller?