changes of function get_data()