table view datasource snippet modified