removed the previous readitems() and writeItems()