updated populateResult, insertItem