renamed 'request' to 'req'