only keep items in the table if they are completed