x to function