reducing the number or redirects