add error handling when list item cannot be set