added update row method