new generare functions for trend