tweak for inline mode