initial versions of code