maybeSend function was missing a parameter