first version of codes