strat: very close to working version