can return data from getData function