move standart functions from lec6 to lec7