init version of codes