added realization of functions