parseTitle func added