modify get data func