add redirection but having trouble