improved phrase extraction
new code