added condition for title