remove intermediate code and results