add intermediate processiong