logic to title section