removed redirect code