move args to constant memory to avoid parameter overflow