title logic now works