refactored functions that request crime data