added function call to get_data
added function call to get_data