created 1st working version