use average ratio better to create even gids