implemented loop