removed unnecessary check on contents list.