create octal function