add function for TerminaController