updating for both text and err input.