early working version