moving to class of functions