use text objects as input