improved insert clause