added set card contents method