fixing update method - typo