update redirect method