added update method, ref #90