optimized update() method