got creation of function values working