clean up apply output