changed source for groovy