added update card method