changing to groovy