fixing some card stuff