added card insertion in helper