HEADLESS non-loop version