added transform to ground function