first working copy of code