errors functional