changing table_name to self.table_name