modify redirection method