update almost working