connected data_method to data