documenting the resquest method