removed unused code
more flexible function to modify card data
Rez handling