where is this used and why is it in the controller?