added function 1d classes