changed title logic