assignzindices for new cards