loop insert and qure