new codePoints function