fix for item function to provide better opportunity for unit tests