factor out param dec