improve func translation