add method to redirect