update is mostly working