change _getItems function