function in osx domain