loop edited