clear intermidiat objects