convert fns in constants