reverted commit that takes out necessary element variable (makes multi-word searches work correctly)