can this method be a view helper method instead ?