implemented private func fetchEntity