naive working version