FIXED: a refactored function needed a variable named request_data to be initialized