refactoring to make easier for the android guy to make the request