fixed delete of expired items, formatting change