remove extra words from output