updating card resource