ve function of each