Changing get data method