revisit gap problem