re-write dep. extraction