implement redirect method