small change in groovy method