improved title generation