get pre code