workflow for tem