improved grid output