change to groovy