write title helper