removed use of dollar sign for res and req