first version that actually finishes successfully