added a check for completed items on list