changed request index to use Request objects as the parameter.