updates to insert check