commented out gregorys code