Removed a for loop from sampleG