implement  redirection