Update now works

Replaced transform by update. No longer need the implicit val