added method declaration for "getPayload"