edited readme:the actual logic is more general than the use case