update method groovy convention