@shacker since we're not using this in the view, can we make this a regular function?