tested functions