adjusted functions to work with item objects