account for possibility of bad insert