removes redirect