renaming gQ to Q