dynamic value to error redirection