replaces the old get_title routine with a more straight forward solution