implemented loop node