migrate to using a view.