remove intermediate after build