build intermediate.