attempting to protect against bad data