removed the filed curIns and made it a local variable