changing payload_type to payloadType