turn title into func