delete every number that isn't returned as the final result.