prompt segment improvements