remove an unnecessary variable id