added helper method in CellProvider to further seperate concerns