only write a valid item