now need to handle element insert