bug in update routine