added check for whether item is done