updated to nobm's conditional GS