added call to update() from Mike's review