first working version of prototype