added get_data function that is general