write items correctly