the return is necessary here so it doesn't continue executing the action and try to send the data anyway.