whoops put function in wrong model