error handling in buildings update method